package cn.yerly.sakura.dao.model;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 * 卖家发货地址
 * 
 * @author yerly
 *
 */
@Entity
public class ShopAddress {
	@Id
	private Long id;
	@ManyToOne
	private User user;
	@ManyToOne
	private Shop shop;
	@ManyToOne
	private UserAddress userAddress;
	private Boolean senderDefault;
	private Boolean refundDefault;
	private Boolean disabled;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Shop getShop() {
		return shop;
	}

	public void setShop(Shop shop) {
		this.shop = shop;
	}

	public UserAddress getUserAddress() {
		return userAddress;
	}

	public void setUserAddress(UserAddress userAddress) {
		this.userAddress = userAddress;
	}

	public Boolean getSenderDefault() {
		return senderDefault;
	}

	public void setSenderDefault(Boolean senderDefault) {
		this.senderDefault = senderDefault;
	}

	public Boolean getRefundDefault() {
		return refundDefault;
	}

	public void setRefundDefault(Boolean refundDefault) {
		this.refundDefault = refundDefault;
	}

	public Boolean getDisabled() {
		return disabled;
	}

	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}

	@Override
	public String toString() {
		return "ShopAddress [id=" + id + ", user=" + user + ", shop=" + shop
				+ ", userAddress=" + userAddress + ", senderDefault="
				+ senderDefault + ", refundDefault=" + refundDefault
				+ ", disabled=" + disabled + "]";
	}

}
